﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true" CodeBehind="Communication.aspx.cs" Inherits="WebApplication1.Confirmation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <style type="text/css">   
        .thisbase
        {
        	float:left;
        	width: 600px;
        	margin-left: 150px;
        	margin-top:30px;
        	
        }
        
        .thisbase .multilinetext
        {
        	float:left;
        	width: 500px;
        	height: 100px;  
        	clear: right;
        }
        
         .Repeater
        {
        	float:left;
        	width: 500px; 
        	margin-top:20px; 
        }
        
        body .home
        {
        	background-image: url(/images/mentor.png);
        	background-repeat: no-repeat;
        	background-position: 42px 190px;
        }
        
        .message
        {   
        	border: 2px solid #999;
        	border-radius: 5px;  
        	margin-top: 15px;    
        	padding: 5px;  
        	min-height: 30px;
        }
      
      .messageDT
      {
          float:right;
      }
    
   </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">
<img src="/images/profile3.jpg" class="profilePic topLeft" />

<div class="thisbase">
  <div >
    <asp:TextBox runat="server" TextMode ="MultiLine" ID="txtMessage" class="multilinetext" Text="Thanks for your help!">
    </asp:TextBox>
     </div>
    <asp:Button cssclass="actionButton" runat="server" Text="Send Message" ID="btnMessage"  OnClick ="btnMessage_Click" /><br /> 
          
  <div  class="Repeater">            
            <asp:Repeater ID="Repeater1" runat="server">
              <ItemTemplate>   
                <div class="messageDT"> <%# DataBinder.Eval(Container.DataItem, "MessageDateTime")%> </div>
                <asp:Panel ID="panelMessage" runat="server" CssClass="message">
                 <%# DataBinder.Eval(Container.DataItem, "Message")%>
                </asp:Panel>
             
              </ItemTemplate>
              <SeparatorTemplate>
                <br>
              </SeparatorTemplate>
            </asp:Repeater>
    </div> 

    </div>
</asp:Content>
